package com.andong.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 车辆预约表
 * @TableName vehicle_booking
 */
@TableName("vehicle_booking")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VehicleBooking implements Serializable {
    /**
     * 主键ID
     */
    @TableId
    private Long id;

    /**
     * 学员ID(逻辑外键)
     */
    private Long studentId;

    /**
     * 车辆ID(逻辑外键)
     */
    private Long vehicleId;

    /**
     * 预约日期
     */
    private LocalDate bookingTime;

    /**
     * 预约状态(1-待教练同意 2-教练拒绝 3-待管理员同意 4-管理员拒绝 5-成功)
     */
    private Integer status;

    /**
     * 拒绝原因
     */
    private String rejectReason;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}